package tech.zhiwei.frostmetal.modules.demo.wrapper;

import tech.zhiwei.frostmetal.core.base.wrapper.BaseWrapper;
import tech.zhiwei.frostmetal.modules.demo.entity.Demo;
import tech.zhiwei.frostmetal.modules.demo.vo.DemoVO;
import tech.zhiwei.tool.bean.BeanUtil;

/**
 * 生成代码示例1 Wrapper
 *
 * @author ALIEN 
 * @since 2024/10/10
 */
public class DemoWrapper extends BaseWrapper<Demo, DemoVO> {
    public DemoWrapper() {
    }

    public static DemoWrapper getInstance() {
        return new DemoWrapper();
    }

    @Override
    public DemoVO entityVO(Demo entity) {
        return BeanUtil.copyProperties(entity, DemoVO.class);
    }
}
